package com.java.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * @author caiyuan
 * @version 1.0
 * @Date 2020/6/11 13:37 Dream-Seeker
 * @Description
 */
public class PsRole {
    private Integer id;
    private String roleName;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date creationTime;
    private String createdBy;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date lastUpdateTime;
    private Integer isStart;
    private List<PsRolePremission> premissionList;

    public PsRole() {
    }

    @Override
    public String toString() {
        return "PsRole{" +
                "id=" + id +
                ", roleName='" + roleName + '\'' +
                ", creationTime=" + creationTime +
                ", createdBy='" + createdBy + '\'' +
                ", lastUpdateTime=" + lastUpdateTime +
                ", isStart=" + isStart +
                ", premissionList=" + premissionList +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public Date getCreationTime() {
        return creationTime;
    }

    public void setCreationTime(Date creationTime) {
        this.creationTime = creationTime;
    }

    public String getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }

    public Date getLastUpdateTime() {
        return lastUpdateTime;
    }

    public void setLastUpdateTime(Date lastUpdateTime) {
        this.lastUpdateTime = lastUpdateTime;
    }

    public Integer getIsStart() {
        return isStart;
    }

    public void setIsStart(Integer isStart) {
        this.isStart = isStart;
    }

    public List<PsRolePremission> getPremissionList() {
        return premissionList;
    }

    public void setPremissionList(List<PsRolePremission> premissionList) {
        this.premissionList = premissionList;
    }
}
